<ion-view view-title="{{title}}">

  <ion-nav-buttons side="left">
    <button class="button button-clear button-outline" ng-click="doSomething()">
      全选
    </button>
  </ion-nav-buttons>
  <ion-nav-buttons side="right">
    <button class="button button-clear button-outline" ng-click="doSomething()">
      认领酒店
    </button>
  </ion-nav-buttons>
  <ion-content class="crm-content">
    <ion-refresher
        pulling-text="下拉刷新"
        on-refresh="doRefresh()">
    </ion-refresher>
    <div class="button-bar">
      <a class="button">筛选</a>
      <a class="button">排序</a>
      <a class="button">酒店名称</a>
    </div>
    <ul class="list">
        <li class='item item-checkbox item-button-right item-icon-right crm-hotel-list' ng-click="showHotelDetail(hotel.id)" ng-repeat="hotel in hotelList">
          <label class="checkbox crm-checkbox">
            <input type="checkbox" ng-model="hotel.checked" onclick="event.stopPropagation()">
          </label>
          <p>
            <span class="crm-hotels-status">{{hotel.status}}</span>
            <span class="crm-hotels-flow">{{hotel.flow}}</span>
          </p>
          <h2 class="crm-hotels-title">{{hotel.name}}</h2>
          <p>{{hotel.address}}&nbsp;</p>
          <p>
            <span>负责人: {{hotel.charge}}</span>
            <span class="crm-pull-right">{{hotel.type}}</span>
          </p>
          <!--<span class='item-note'>-->
            <!--<i class='icon ion-ios-telephone-outline' ng-click="showTelList($event, hotel.tels)"></i>-->
          <!--</span>-->
          <div class="item-content">
            <button class="button button-outline button-small">
              认领
            </button>
            <button class="button button-clear crm-button-right-bottom" ng-click="showTelList($event, hotel.tels)">
              <i class='icon ion-ios-telephone-outline'></i>
            </button>
          </div>
        </li>
      </ul>
    <ion-infinite-scroll
         ng-if="moreDataCanBeLoaded()"
         on-infinite="loadingMore()"
         distance="5%"
         spinner="dots">
    </ion-infinite-scroll>
  </ion-content>
</ion-view>
